<?php

namespace plugin\cms\app\validate;

use core\validate\ValidateBase;

/**
 * 评论验证
 */
class Comment extends ValidateBase
{
    protected $rule =   [
        'cid'       => 'require|number',
        'contentid' => 'require|number',
        'uid'       => 'require|number',
        'siteid'    => 'require|number',
        'content'   => 'require'
    ];

    protected $message  =   [
        'cid.require'       => '分类ID必填',
        'cid.number'        => '分类ID必填 ',
        'contentid.require' => '内容ID必填 ',
        'contentid.number'  => '内容ID必填 ',
        'siteid.require'    => '站点ID必填 ',
        'siteid.number'     => '站点ID必填',
        'uid.require'       => '评论人必填 ',
        'uid.number'        => '评论人必填',
        'content.require'   => '内容必填 ',

    ];
}
